interface Control{
    name:string,
    icon:string,
    click:(ev:MouseEvent)=>{}
}
interface ControlArea{
    top:number,
    left:number,
    children:Control[]
}
interface FNode{
    id:string,
    code:string,//节点对应的html,库节点代码可以用[基本库组件名],
    //TODO 怎么留接口，支持动态扩展？
}
interface CanvasAre{
    cmd:string[],//控制项：editable(可编辑，默认有)，dragable(可拖动)
    nodes:[]
    edges:[]
}
interface NodeFlowConfig{
    domId:string,
    controlArea:ControlArea,
    canvasAre:{}
}
export default class NodeFlow{
    /**
     * dom id名
     */
    public domId:string = ""
    /**
     * 配置对象
     */
    public configs:object = {}

    public config(option:object){

    }
}